import QtQuick 2.0


Rectangle {
    id: header
    anchors.top: parent.top
    width: parent.width
    height: 70
    color: "white"

    property string title
    property string iconSource
    property bool iconVisible: true

    Row {
        id: logo
        anchors.centerIn: parent
        anchors.horizontalCenterOffset: -4
        spacing: 4
        Image {
            id: image
            source: header.iconSource
            width: 160 ; height: 60
            fillMode: Image.PreserveAspectFit
            visible: header.iconVisible
        }
        Text {
            text: header.title
            anchors.verticalCenter: parent.verticalCenter
            anchors.verticalCenterOffset: -3
            font.bold: true
            font.pixelSize: 46
            color: "#555"
        }
    }
    Rectangle {
        width: parent.width ; height: 1
        anchors.bottom: parent.bottom
        color: "#bbb"
    }
}
